from commands.core.command import Command

class HideWatchedCmd(Command):

    def __init__(self):
        self.names = ["hidewatched", "hw"]
        self.has_args = False
    
    def execute(self, args: str, obj):
        if len(args) > 0: return "Error: Incorrect arguments!"
        
        if obj.is_watched_hidden:
            obj.is_watched_hidden = False
        else:
            obj.is_watched_hidden = True


